package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * ClinicTreatReport entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="clinictreatreport"
    ,catalog="hospital"
)

public class ClinicTreatReport  implements java.io.Serializable {


    // Fields    

     private Integer reportId;
     private Integer clinicId;
     private Integer projectId;
     private Timestamp datetime;
     private Integer type;
     private Double treatIncome;
     private Double otherIncome;
     private Double selfCost;
     private Double otherCost;


    // Constructors

    /** default constructor */
    public ClinicTreatReport() {
    }

    
    /** full constructor */
    public ClinicTreatReport(Integer clinicId, Integer projectId, Timestamp datetime, Integer type, Double treatIncome, Double otherIncome, Double selfCost, Double otherCost) {
        this.clinicId = clinicId;
        this.projectId = projectId;
        this.datetime = datetime;
        this.type = type;
        this.treatIncome = treatIncome;
        this.otherIncome = otherIncome;
        this.selfCost = selfCost;
        this.otherCost = otherCost;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="reportId", unique=true, nullable=false)

    public Integer getReportId() {
        return this.reportId;
    }
    
    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }
    
    @Column(name="clinicId", nullable=false)

    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="projectId", nullable=false)

    public Integer getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
    
    @Column(name="datetime", nullable=false, length=19)

    public Timestamp getDatetime() {
        return this.datetime;
    }
    
    public void setDatetime(Timestamp datetime) {
        this.datetime = datetime;
    }
    
    @Column(name="type", nullable=false)

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    @Column(name="treatIncome", nullable=false, precision=22, scale=0)

    public Double getTreatIncome() {
        return this.treatIncome;
    }
    
    public void setTreatIncome(Double treatIncome) {
        this.treatIncome = treatIncome;
    }
    
    @Column(name="otherIncome", nullable=false, precision=22, scale=0)

    public Double getOtherIncome() {
        return this.otherIncome;
    }
    
    public void setOtherIncome(Double otherIncome) {
        this.otherIncome = otherIncome;
    }
    
    @Column(name="selfCost", nullable=false, precision=22, scale=0)

    public Double getSelfCost() {
        return this.selfCost;
    }
    
    public void setSelfCost(Double selfCost) {
        this.selfCost = selfCost;
    }
    
    @Column(name="otherCost", nullable=false, precision=22, scale=0)

    public Double getOtherCost() {
        return this.otherCost;
    }
    
    public void setOtherCost(Double otherCost) {
        this.otherCost = otherCost;
    }
   








}